package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 订单明细表(OrderDetail)实体类
 *
 * @author makejava
 * @since 2024-03-12 16:52:06
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetail implements Serializable {
    private static final long serialVersionUID = 322233665320020207L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 名字
     */
    private String name;
    /**
     * 图片
     */
    private String image;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 商品id
     */
    private Long productId;
    /**
     * 数量
     */
    private Integer number;
    /**
     * 金额
     */
    private Double amount;
    /**
     * 下单方式 0线下 1线上
     */
    private Integer method;

}

